package andriod.samples;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ActivityDataStore extends Activity {

	OnClickListener listener0 = null;
	OnClickListener listener1 = null;
	OnClickListener listener2 = null;
	
	Button button0;
	Button button1;
	Button button2;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_datastore);
		
		listener0 = new OnClickListener() {
			public void onClick(View v) {
				Intent intent0 = new Intent(ActivityDataStore.this, ActivitySharedpreferences.class);
				startActivity(intent0);

			}
		};
		
		button0 = (Button) findViewById(R.id.sharedpreferences);
		button0.setOnClickListener(listener0);
		
		listener1 = new OnClickListener() {
			public void onClick(View v) {
				Intent intent1 = new Intent(ActivityDataStore.this, ActivitySQLDiary.class);
				startActivity(intent1);

			}
		};
		
		button1 = (Button) findViewById(R.id.SQLiteBtn);
		button1.setOnClickListener(listener1);
	
    }
}
